import request from '@/utils/request'

// 查询参数列表
export function listShopCategory(query) {
  return request({
    url: '/shop/category',
    method: 'get',
    params: query
  })
}
//添加分类
export function addShopCategory(data) {
  return request({
    url: '/shop/category',
    method: 'post',
    data
  })
}
//查询分类
export function queryShopCategory(id) {
  return request({
    url: '/shop/category/' + id,
    method: 'get'
  })
}
//删除分类
export function delShopCategory(id) {
  return request({
    url: '/shop/category/' + id,
    method: 'delete'
  })
}
//更新分类

export function updateShopCategory(data) {
  return request({
    url: '/shop/category',
    method: 'put',
    data
  })
}
